package com.service.imple.home;

import com.dao.ShopOrderGoodsMapper;
import com.entity.ShopOrderGoods;
import com.github.pagehelper.PageInfo;
import com.service.home.ShopOrderGoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class ShopOrderGoodsServiceImple implements ShopOrderGoodsService {

    @Autowired
    private ShopOrderGoodsMapper shopOrderGoodsMapper;

    @Override
    public PageInfo selectByPage(Map map) {
        return null;
    }

    @Override
    public List select(Map map) {
        return null;
    }

    @Override
    public int insert(ShopOrderGoods shopOrderGoods) {
        return shopOrderGoodsMapper.insert(shopOrderGoods);
    }

    @Override
    public int update(ShopOrderGoods shopOrderGoods) {
        return shopOrderGoodsMapper.updateByPrimaryKey(shopOrderGoods);
    }

    @Override
    public int delete(int id) {
        return shopOrderGoodsMapper.deleteByPrimaryKey(id);
    }

    @Override
    public List<ShopOrderGoods> SelectAll(ShopOrderGoods shopOrderGoods) {
        return shopOrderGoodsMapper.SelectAll(shopOrderGoods);
    }
}
